using System;
using System.Data;
using System.Configuration;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using EcsSiteDSTableAdapters;
using System.ComponentModel;

/// <summary>
/// Summary description for NewsDetailsBLL
/// </summary>

namespace SiteECSWeb
{
    [DataObject]
    public class NewsOptionsBLL
    {
        #region ClassConstructor
        public NewsOptionsBLL()
        {

        }
        #endregion

        private NewsOptionsTableAdapter _NewsOptionsAdapter;

        protected NewsOptionsTableAdapter NewsOptionsAdapter
        {
            get
            {
                if (_NewsOptionsAdapter == null)
                {
                    _NewsOptionsAdapter = new NewsOptionsTableAdapter();
                }
                return _NewsOptionsAdapter;
            }
        }

        #region SelectableTable
        [DataObjectMethodAttribute(DataObjectMethodType.Select, false)]
        public EcsSiteDS.NewsOptionsDataTable GetCountNewsWithDateMonth()
        {
            return NewsOptionsAdapter.GetCountNewsDataWithDateMonth();
        }
        [DataObjectMethodAttribute(DataObjectMethodType.Select, false)]
        public EcsSiteDS.NewsOptionsDataTable GetNewsCountCountry()
        {
            return NewsOptionsAdapter.GetNewsCountCountryData();
        }
        #endregion
    }
}